#!/usr/local/bin/gnuplot -persist
set terminal pdfcairo  transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 
set output 'plot.pdf'
set dummy u, v
set key bmargin center horizontal Right noreverse enhanced autotitle nobox
set parametric
set view 50, 30, 1, 1
set isosamples 50, 20
set hidden3d back offset 1 trianglepattern 3 undefined 1 altdiagonal bentover
set style data lines
set xyplane relative 0
set title "t" 
set urange [ -3.14159 : 3.14159 ] noreverse nowriteback
set vrange [ -3.14159 : 3.14159 ] noreverse nowriteback
set xtics 1
set xrange [ * : * ] noreverse writeback
set x2range [ * : * ] noreverse writeback
set ytics 1
set yrange [ * : * ] noreverse writeback
set y2range [ * : * ] noreverse writeback
set ztics 1
set zrange [ * : * ] noreverse writeback
set cbrange [ * : * ] noreverse writeback
set rrange [ * : * ] noreverse writeback
set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front  noinvert bdefault
NO_ANIMATION = 1
axes = system("cat dimension")
x_axis = int(word(axes, 1))
y_axis = int(word(axes, 2))
z_axis = int(word(axes, 3))

splot x_axis*cos(u)*sin(v), y_axis*sin(u)*sin(v), z_axis*cos(v) with lines